Skip to content

Conversation

@Nikita-Shupletsov
Copy link
Contributor

@Nikita-Shupletsov Nikita-Shupletsov commented Oct 8, 2025

MINOR: changed the condition to only check the test topic to reduce the
flakiness of the test.

Reviewers: Matthias J. Sax [email protected], Lianet Magrans
[email protected]

@github-actions github-actions bot added triage PRs from the community tools tests Test fixes (including flaky tests) small Small PRs labels Oct 8, 2025
String underReplicatedOutput = captureDescribeTopicStandardOut(clusterInstance, buildTopicCommandOptionsWithBootstrap(clusterInstance, "--describe", "--under-replicated-partitions"));
assertEquals("", underReplicatedOutput,
assertFalse(underReplicatedOutput.contains(String.format("Topic: %s", testTopicName)),
String.format("--under-replicated-partitions shouldn't return anything: '%s'", underReplicatedOutput));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: seems the error message would need an update, too?

@mjsax mjsax added ci-approved and removed triage PRs from the community labels Oct 8, 2025
Comment on lines 1201 to 1202
assertFalse(underReplicatedOutput.contains(String.format("Topic: %s", testTopicName)),
String.format("--under-replicated-partitions shouldn't contain '%s': '%s'", String.format("Topic: %s", testTopicName), underReplicatedOutput));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we extract the string formatting bit to a var (good to reuse and would be clearer)

Copy link
Member

@lianetm lianetm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@lianetm lianetm merged commit 6ef10ec into apache:trunk Oct 9, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-approved small Small PRs tests Test fixes (including flaky tests) tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants